projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b05b5a
)
make thread_check_current_buffer return bool
author
Tom Tromey
<tromey@redhat.com>
Tue, 27 Aug 2013 18:29:56 +0000
(12:29 -0600)
committer
Tom Tromey
<tromey@redhat.com>
Tue, 27 Aug 2013 18:29:56 +0000
(12:29 -0600)
src/thread.c
patch
|
blob
|
history
src/thread.h
patch
|
blob
|
history
diff --git
a/src/thread.c
b/src/thread.c
index ae2212e697d74b0522846f93dcadf4620b749397..20d0568bef598b17e06d0c89c796301f316381dc 100644
(file)
--- a/
src/thread.c
+++ b/
src/thread.c
@@
-882,7
+882,7
@@
DEFUN ("all-threads", Fall_threads, Sall_threads, 0, 0, 0,
\f
-int
+bool
thread_check_current_buffer (struct buffer *buffer)
{
struct thread_state *iter;
@@
-893,10
+893,10
@@
thread_check_current_buffer (struct buffer *buffer)
continue;
if (iter->m_current_buffer == buffer)
- return
1
;
+ return
true
;
}
- return
0
;
+ return
false
;
}
\f
diff --git
a/src/thread.h
b/src/thread.h
index 231c7acc31f6913056aad512a023bf8b6bacfb34..2b9963423dbd17d1bdd30b473b5507aa645c9ea3 100644
(file)
--- a/
src/thread.h
+++ b/
src/thread.h
@@
-241,6
+241,6
@@
int thread_select (select_func *func, int max_fds, SELECT_TYPE *rfds,
SELECT_TYPE *wfds, SELECT_TYPE *efds, EMACS_TIME *timeout,
sigset_t *sigmask);
-
int
thread_check_current_buffer (struct buffer *);
+
bool
thread_check_current_buffer (struct buffer *);
#endif /* THREAD_H */